package com.example.easyevent.fetcher;

import com.example.easyevent.type.Event;
import com.example.easyevent.type.User;
import com.example.easyevent.type.UserInput;
import com.netflix.graphql.dgs.DgsDataLoader;
import lombok.RequiredArgsConstructor;
import org.dataloader.BatchLoader;
import org.dataloader.MappedBatchLoader;

import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CompletionStage;

/**
 * @Author tianyi
 * @Description // todo
 * @Date 2023 - 11 - 16
 **/
@DgsDataLoader(name = "getEventByUsers")
public class GetEventsByUserFetcher implements MappedBatchLoader<UserInput, Event> {


    @Override
    public CompletionStage<Map<UserInput, Event>> load(Set<UserInput> set) {
        return null;
    }
}
